package main

import (
	"fmt"
	"time"
)

/*===定时器===
  -
*/
func main() {
	fmt.Println("当前时间", time.Now())
	myTimer := time.NewTimer(time.Second * 3)
	nowTime := <-myTimer.C
	fmt.Printf("使用定时器后的时间：%v\n", nowTime)
}
